package com.one.service.impl;

import com.one.mapper.DogRecordMapper;
import com.one.pojo.DogRecord;
import com.one.service.DogRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description
 * @Author semstouch
 * @Date 2017/4/11
 **/
@Service
public class DogRecordServiceImpl implements DogRecordService{
    @Resource
    private DogRecordMapper dogRecordMapper;
    @Override
    public int add(DogRecord record) {
        return dogRecordMapper.insertSelective(record);
    }

    @Override
    public DogRecord findByDailyAndUserId(String daily, String userId) {
        return dogRecordMapper.findByDailyAndUserId(daily,userId);
    }
}
